//
//  LyricTableViewCell.m
//  MusicPlayer
//
//  Created by lanou3g on 16/5/13.
//  Copyright © 2016年 韩宏. All rights reserved.
//

#import "LyricTableViewCell.h"

@implementation LyricTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.lyricLabel = [[UILabel alloc] init];
        self.lyricLabel.textAlignment = NSTextAlignmentCenter;
        self.lyricLabel.numberOfLines = 0;
        [self.contentView addSubview:self.lyricLabel];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.lyricLabel.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setvaluesWithLyricTools:(LyricTools *)lyricTools
{
    self.lyricLabel.text = lyricTools.lyricStr;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
